package com.ftg.learn.framework.aop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 测试
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/9/14 下午4:02
 */
public class AopDemo {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext a  = new AnnotationConfigApplicationContext();
        a.scan("com.ftg.learn.framework.aop");
        a.refresh();

        MyTarget bean = a.getBean(MyTarget.class);
        bean.add();
    }

}
